home *** CD-ROM | disk | FTP | other *** search
- @echo off
- :0. u have nothing OR all the msgbrd (all messages and tree-file MBxxxxxx.tre)
- : somewhere in a subdir, e.g. MBXYZ (not in root!)
- : perl-script files should be you know where (paths etc)
- :1. download current msgboard main file WHOLE (eh, well, it's not mandatory,
- : but on your risk to miss some update to some old thread)
- : - with some Browser, or Teleport, or the way u like (better not teleport;)
- :2. save/move/copy the main-msgboard-file to that MXBYZ directory (e.g. MBS.CGI)
- :2b. assure the MBxxxxxx.tre that is in that directory is the last one.
- :3. go there and run "perl MSGBRD.PL that_file"
- :4. after that you will have GETONLY.HTM in the directory (with links only to
- : the new messages) and updated MBxxxxxx.tre/hdr in the UPPER(!) directory.
- : The one in the MBXYZ is not touched
- :5. fire a Teleport or whatever good downloader at the GETONLY.HTM
- : (without MSIE .htm naming!; ONE level deep ONLY)
- :6. wait until it finishes
- :7. go in the result directory (e.g. project/aa) and sort files by size.
- : Anything less than 3-4K is wrong.
- : Get a list of these files, copy them back into GETONLY.HTM, comment the rest
- : (be careful: Teleport changes the '?' in cgi-url's to '-': change them back!)
- :7b. fire Teleport again over the GETONLY.HTM, and loop until all is OK.
- :8. goto that directory and run "perl MSG2.PL *.cgi"
- : this will screen all the message-files and will produce equivallent number
- : filtered and properly named HTM's (like 12345678.HTM)
- :9. copy/move all the 12345678.HTMs to MBXYZ/
- : go there. now u can run
- : 9a perl TREE2MSGc.pl ..\mbxxxxxx.tre
- : to get a main msgbrd-file ..\MBxxxxxx.HTM
- : 9b perl TREE2MSGc.pl ..\mbxxxxxx.tre yes
- : to get a main msgbrd-file WITH labelled missing links
- : 9c perl CHECKTRE.PL ..\mbxxxxxx.tre
- : you'll get as output a htm with all the missing links if any
- : then get them or go 9a
- :all this can be done at any time
- :of course you can 1st copy ..\mbxxxxxx.tre (and ..\mbxxxxxx.hdr) to that dir
- : and run perl-script over them... but it's better to check 1st
- :
- :known bugs:
- : msbgrd-from-tree-rebuilder makes MBxxxxxx.HTM, while all the messages point
- : back to mbxxxxxx.htm, which is slighty different ;)- cases do not match
- : it won't run on any unix - u should rename MBxxxxxx.HTM to mbxxxxxx.htm
- : (warning) Message-files are named 12345678.HTM, which is missing the starting
- : '9' of their real number. They were named 12345678.9, but browsers did
- : not recognize them as html's, therefore i renamed them.
- : i hope in next several years they will not overflow that billion ;)
-
- :10a cleaining: u need only the Teleport's project file, CLEAR-DATABASEd.
- : the tmp download directory can be removed even prior to this
- : u can remove the MBS.CGI after it has been used
- :10b. archiving: files needed are: *.9 or *.HTM mbXXXXXX.tre mbXXXXXX.hdr
- : and probably MBxxxxxx.HTM
- : (and may be, perl scripts;)
- :
- :if anything goes wrong, the old tree-structure is in your backuped ;)
- : archive or in MBXYZ if u did not copy the new one over there
- :
- : Enjoy!
- : SvD Jan'99
-